﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using log4net;

namespace Browis.Package
{
    public interface IDbPub
    {
        void Init(ILog log);
        Dictionary<string, List<object>> GetQueryCmdResult(string sText, string sChannel, string sUserID, string sCn, Dictionary<string, object> objParam, DateTime dtCurrentSyncTime, DateTime dtLastSyncTime, int iSyncType);
        bool GetTestResult(string sText, string sChannel, string sUserID, string sCn, Dictionary<string, object> objParam, DateTime dtCurrentSyncTime, DateTime dtLastSyncTime, int iSyncType);
        void ExecuteCommand(string sText, string sChannel, string sUserID, string sCn, Dictionary<string, object> objParam, DateTime dtCurrentSyncTime, DateTime dtLastSyncTime, int iSyncType);
        bool ExecutePakCmd(string sText, string sChannel, string sUserID, string sCn, Dictionary<string, object> objParam, XmlNode ndCmd, DateTime dtCurrentSyncTime, DateTime dtLastSyncTime, int iSyncType, ref DataPackage dataPak);
    }
    
}
